<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fun"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>文章管理系统</title>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/cms.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/site.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/myPagination/page.css">
	<script type="text/javascript" src="<%=request.getContextPath()%>/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/myPagination/jquery.myPagination6.0.js"></script>
</head>
<body>
	<div id="container">
	
		<jsp:include page="site/navs.do"></jsp:include>
		
		<div id="center">
		<c:choose>
			<c:when test="${fun:length(columns) > 0}">
				<div id="left">
					<ul id="subNav">
					<c:forEach items="${columns}" var="subNav">
						<li><a href="<%=request.getContextPath()%>/site/column.do?columnId=${columnId}&subColumnId=${subNav.id}&page=1&rows=10">${subNav.name}</a></li>
					</c:forEach>
					</ul>
				</div>
				<div id="right">
					<%@include file="articleList.jsp" %>				
				</div>
			</c:when>
			<c:otherwise>
			<div>
				<%@include file="articleList.jsp" %>
			</div>
			</c:otherwise>
		</c:choose>
		</div>
		
		<div class="clear"></div>
		<jsp:include page="site/bottom.do"></jsp:include>
		
	</div>
</body>
</html>